package com.java.basic;
public class SwitchTests {
    public static void main(String[] args) {
        int a=5;
        int result=0;
        switch (a){//byte/short/int/char/String/enum
            default:result+=40;
            case 1: result+=10;
            case 2: result+=20;
            case 3: result+=30;
        }
        System.out.println(result);
    }
}
